Repository navigation
Conversation
| for map_location in self.maps_in_use: | ||
| if map_location in speedrun_logic_table: | ||
| self.location_logic[map_location] = speedrun_logic_table[map_location] | ||
| random_logic = self.random.choice(speedrun_logic_table[map_location]) |
Owner
There was a problem hiding this comment.
I wouldn't use random choice, instead if you want to have alternate logic you can update the logic calculation to use "has_all" and "or" each list over a loop to create the rule. This will also have to be updated in the menu to reflect this which I can do in the next update
Owner
|
Check comments. Random will mess up the menu in a funky way, UT would be able to handle it but I can't gen the menu with random logic (at least not easily). Alternative logic would be better |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please format your title with what portion of the project this pull request is
targeting and what it's changing.
ex. "MyGame4: implement new game" or "Docs: add new guide for customizing MyGame3"
What is this fixing or adding?
Adjustments to Speedrun logic for Portal 2:
How was this tested?
Successfully generated an AP with a downloaded custom apworld and logic set in YAML.
If this makes graphical changes, please attach screenshots.
N/A